import request from '@/utils/request1'
// 用户列表管理
export function getList(param) {
  return request({
    // url: '/user/manage.do',
    url: '/loginCenter/userManage/queryUserList',
    method: 'post',
    data: param
  })
}

// 删除用户
export function deleteUser(param) {
  return request({
    url: '/loginCenter/userManage/deleteUser',
    method: 'post',
    data: param
  })
}

// 用户详情
export function getInfo(param) {
  return request({
    url: '/loginCenter/userManage/queryUserInfo',
    method: 'post',
    data: param
  })
}

// 编辑保存
export function saveEdit(param) {
  return request({
    url: '/loginCenter/userManage/updateUser',
    method: 'post',
    data: param
  })
}

/* // 新增
export function addUser(param) {
  return request({
    url: '/user/add.do',
    method: 'post',
    data: {
      param: param
    }
  })
} */

// 校验是否id重复
export function checkId(param) {
  return request({
    url: '/user/isNotExist.do',
    method: 'post',
    data: {
      param: param
    }
  })
}

// 新增保存
export function saveAdd(param) {
  return request({
    url: '/loginCenter/userManage/insertUser',
    method: 'post',
    data: param
  })
}

